
<div id="wrapper-content" >
    <table class="titrepage" width="100%">
        <tr>
            <td >La liste des videos</td>
            <td align="right">Total | <?php echo $total ?> </td>
        </tr>
    </table>
    <div  id="ajouter" align="left"><a href="<?php echo site_url('video/ajouter_video')?>">Ajouter videos</a></div>
    <table align="center" width="100%" class="list">
        <thead>
                <tr>
                    <th>Video</th>
                    <th>Description</th>
                    <th>Date envoyé</th>
                    <th>Auteur</th>
                    <th colspan="2">Action</th>
                </tr>
        </thead>
        <?php foreach ($query as $aRow): ?>
        <?php
            $pattern = "%d-%m-%Y";
            $posted_date = mdate($pattern, $aRow['upload_time']);
        ?>
                <tr>
                    <td><?php echo $aRow['name']; ?></td>
                    <td><?php echo get_short_description($aRow['description'],10); ?></td>
                    <td><?php echo $posted_date; ?></td>
                    <td><?php echo $aRow['display_name']; ?></td>

                    <td width="70px"><a  href="<?php echo site_url('video/edit_video') . '/' . $aRow['id']; ?>" ><img border="0"src="<?php echo root_url('seatting-falin') . 'assets/admin/' ?>images/modifier.png"/></a></td>
                    <td width="70px">
                        <a class="supprimer" href="#" ><img border="0"src="<?php echo root_url('seatting-falin') . 'assets/admin/' ?>images/supprimer.png"/></a>
                        <div style="display:none">
                    		    	Confirmer <br/>
                            <a href="<?php echo site_url('video/delete_video') . '/' . $aRow['id'] . '/' . $per_page . '/' . $off_set; ?>"> <img border="0"src="<?php echo root_url('seatting-falin') . 'assets/admin/' ?>images/oui.png"/></a>
                    <a class="non" href="#" ><img  border="0"src="<?php echo root_url('seatting-falin') . 'assets/admin/' ?>images/non.png"/></a>
                </div>

            </td>
        </tr>
        <?php endforeach; ?>
            </table>
    <?php echo $pagination; ?>
</div>
<!--END wrapper-content-->
